<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./principal.xhtml">

            <ui:define name="body-title">
                Carga masiva de empleados
            </ui:define>

            <ui:define name="body">
                <p:blockUI trigger="fileUploadcomp" block="fileUploadcomp">
                                <font size="-5">Cargando archivo...</font>
                                <p:graphicImage value="ajax-loader"/>
                            </p:blockUI>
                <p:panelGrid>
                    <p:row>
                        <p:column>
                            
                            <p:fileUpload id="fileUploadcomp"
                                fileUploadListener="#{fileUploadBean.handleFileUpload}"
                                mode="advanced" dragDropSupport="false"
                                fileLimit="1" allowTypes="/(\.|\/)(txt)$/"
                                cancelLabel="Cancelar"
                                uploadLabel="Cargar" label="Escoger"
                                />
                        </p:column>
                    </p:row>
                </p:panelGrid>
            </ui:define>

        </ui:composition>

    </body>
</html>
